from common.database import db


# 植物表(对应数据库字段)
class Plants(db.Model):
    plant_id = db.Column(db.Integer, primary_key=True)
    title = db.Column(db.String(100))
    image_path = db.Column(db.String(500))
    description = db.Column(db.Text)
    posted_date = db.Column(db.DateTime)
    read_count = db.Column(db.Integer)
    like_count = db.Column(db.Integer)
    author_id = db.Column(db.Integer)
    text = db.Column(db.String(500))
    type_number = db.Column(db.Integer)
